﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucCustomer.ascx.cs" Inherits="UserControl_WebUserControl" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<link href="../css/content.css" rel="stylesheet" type="text/css" />
<div class=" block">
</div>
<div class=" block">
</div>
<div class="Post">
    <div class="Post-tl">
    </div>
    <div class="Post-tr">
    </div>
    <div class="Post-bl">
    </div>
    <div class="Post-br">
    </div>
    <div class="Post-tc">
    </div>
    <div class="Post-bc">
    </div>
    <div class="Post-cl">
    </div>
    <div class="Post-cr">
    </div>
    <div class="Post-cc">
    </div>
    <div class="Post-body">
        <div class="Post-inner">
            <div class="PostContent">
                <h2 class="PostHeaderIcon-wrapper">
                    CUSTOMER</h2>
                Customer ID
                <asp:TextBox ID="txtCustomerIndex" Style="width: 50px; height: 20px;" Enabled="false"
                    runat="server"></asp:TextBox>
                <div class="PostHeaderIcons metadata-icons">
                    <div id="message_green" runat="server" style="display: none">
                        <table border="0" width="100%" cellpadding="0" cellspacing="0">
                            <tr>
                                <td class="green-left">
                                    Infomation update sucessfully. <a href="Booking.aspx">New Booking.</a>
                                </td>
                                <td class="green-right">
                                    <a class="close-green">
                                        <img src="image/icon_close_green.gif" alt="" /></a>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="PostContent">
                    <div class="article">
                        <span class="print-link"></span>
                        <table id="table" width="100%" border="0">
                            <tr>
                                <td valign="top" style="text-align: right">
                                    Title
                                    <asp:DropDownList ID="drTitle" runat="server" Width="50px">
                                        <asp:ListItem>Mr</asp:ListItem>
                                        <asp:ListItem>Mrs</asp:ListItem>
                                        <asp:ListItem>Miss</asp:ListItem>
                                    </asp:DropDownList>
                                    &nbsp;First Name
                                </td>
                                <td>
                                    <asp:UpdatePanel ID="updFname" runat="server">
                                        <ContentTemplate>
                                            <label>
                                                <asp:TextBox ID="txtFName" CssClass="inp-form" AutoPostBack="true" runat="server"
                                                    OnTextChanged="txtFName_TextChanged"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtFName"
                                                    SetFocusOnError="true" Text="" ValidationGroup="validSave" ErrorMessage="*" Display="Static"></asp:RequiredFieldValidator>
                                            </label>
                                        </ContentTemplate>
                                        <Triggers>
                                            <asp:AsyncPostBackTrigger ControlID="txtFName" EventName="TextChanged" />
                                        </Triggers>
                                    </asp:UpdatePanel>
                                </td>
                                <td>
                                    <div align="right">
                                        Last Name</div>
                                </td>
                                <td>
                                    <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                                        <ContentTemplate>
                                            <asp:TextBox ID="txtLName" CssClass="inp-form" runat="server" AutoPostBack="True"
                                                OnTextChanged="txtLName_TextChanged"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtLName"
                                                SetFocusOnError="true" Text="" ValidationGroup="validSave" ErrorMessage="*" Display="Static"></asp:RequiredFieldValidator>
                                        </ContentTemplate>
                                        <Triggers>
                                            <asp:AsyncPostBackTrigger ControlID="txtLName" EventName="TextChanged" />
                                        </Triggers>
                                    </asp:UpdatePanel>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: right">
                                    <%-- Post Code--%>
                                    Email
                                </td>
                                <td>
                                    <asp:TextBox ID="txtEmail" CssClass="inp-form" runat="server"></asp:TextBox>
                                </td>
                                <td style="text-align: right">
                                    <asp:Label ID="lbpass" runat="server" Text="Password"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtPass" TextMode="Password" CssClass="inp-form" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div align="right">
                                        Company Name</div>
                                </td>
                                <td colspan="3">
                                    <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                                        <ContentTemplate>
                                            <asp:TextBox ID="txtCompany" CssClass="inp-form" Width="97%" runat="server" AutoPostBack="True"
                                                OnTextChanged="txtCompany_TextChanged"></asp:TextBox>
                                        </ContentTemplate>
                                        <Triggers>
                                            <asp:AsyncPostBackTrigger ControlID="txtCompany" EventName="TextChanged" />
                                        </Triggers>
                                    </asp:UpdatePanel>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: right">
                                    Number
                                </td>
                                <td>
                                    <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender6" runat="server" FilterType="Numbers"
                                        TargetControlID="txtNumber">
                                    </asp:FilteredTextBoxExtender>
                                    <asp:TextBox ID="txtNumber" CssClass="inp-form" runat="server"></asp:TextBox>
                                </td>
                                <td style="text-align: right">
                                    Street Name
                                </td>
                                <td>
                                    <asp:UpdatePanel ID="UpdatePanel5" runat="server">
                                        <ContentTemplate>
                                            <asp:TextBox ID="txtStreet" CssClass="inp-form" runat="server" AutoPostBack="True"
                                                OnTextChanged="txtStreet_TextChanged"></asp:TextBox>
                                        </ContentTemplate>
                                        <Triggers>
                                            <asp:AsyncPostBackTrigger ControlID="txtStreet" EventName="TextChanged" />
                                        </Triggers>
                                    </asp:UpdatePanel>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: right">
                                    State
                                </td>
                                <td>
                                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                        <ContentTemplate>
                                            <%-- <asp:DropDownList ID="drState" runat="server" Height="22px" Width="95%" 
                                                AutoPostBack="true" ontextchanged="drState_TextChanged">
                                                <asp:ListItem></asp:ListItem>
                                                <asp:ListItem Value="NSW">NSW</asp:ListItem>
                                                <asp:ListItem Value="ACT">ACT</asp:ListItem>
                                                <asp:ListItem Value="NT">NT</asp:ListItem>
                                                <asp:ListItem Value="QLD">QLD</asp:ListItem>
                                                <asp:ListItem Value="SA">SA</asp:ListItem>
                                                <asp:ListItem Value="TAS">TAS</asp:ListItem>
                                                <asp:ListItem Value="VIC">VIC</asp:ListItem>
                                                <asp:ListItem Value="WA">WA</asp:ListItem>
                                            </asp:DropDownList>--%>
                                            <asp:ComboBox ID="drState" runat="server" Width="100px" AutoCompleteMode="Append"
                                                MaxLength="0">
                                                <%--<asp:ListItem></asp:ListItem>
                                                <asp:ListItem Value="NSW">NSW</asp:ListItem>
                                                <asp:ListItem Value="ACT">ACT</asp:ListItem>
                                                <asp:ListItem Value="NT">NT</asp:ListItem>
                                                <asp:ListItem Value="QLD">QLD</asp:ListItem>
                                                <asp:ListItem Value="SA">SA</asp:ListItem>
                                                <asp:ListItem Value="TAS">TAS</asp:ListItem>
                                                <asp:ListItem Value="VIC">VIC</asp:ListItem>
                                                <asp:ListItem Value="WA">WA</asp:ListItem>--%>
                                            </asp:ComboBox>
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: right">
                                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                        <ContentTemplate>
                                            Post Code
                                        </ContentTemplate>
                                        <Triggers>
                                            <asp:AsyncPostBackTrigger ControlID="txtPostcode" EventName="TextChanged" />
                                        </Triggers>
                                    </asp:UpdatePanel>
                                </td>
                                <td>
                                    <asp:UpdatePanel ID="update" runat="server">
                                        <ContentTemplate>
                                            <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" FilterType="Numbers"
                                                TargetControlID="txtPostcode">
                                            </asp:FilteredTextBoxExtender>
                                            <asp:TextBox ID="txtPostcode" CssClass="inp-form" runat="server" AutoPostBack="True"
                                                OnTextChanged="txtPostcode_TextChanged"></asp:TextBox>
                                        </ContentTemplate>
                                        <Triggers>
                                            <asp:AsyncPostBackTrigger ControlID="txtPostCode" EventName="TextChanged" />
                                        </Triggers>
                                    </asp:UpdatePanel>
                                </td>
                                <td style="text-align: right">
                                    Suburb&nbsp;
                                </td>
                                <td>
                                    <asp:UpdatePanel ID="state" runat="server">
                                        <ContentTemplate>
                                            <%--<asp:DropDownList ID="drSuburb" runat="server" Height="22px" Width="95%" AutoPostBack="True">
                                            </asp:DropDownList>--%>
                                            <asp:ComboBox ID="drSuburb" runat="server" Width="100px" AutoCompleteMode="Append"
                                                MaxLength="0">
                                                </asp:ComboBox>
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div align="right">
                                        Mobile</div>
                                </td>
                                <td>
                                    <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" FilterType="Numbers"
                                        TargetControlID="txtMobile">
                                    </asp:FilteredTextBoxExtender>
                                    <asp:TextBox ID="txtMobile" CssClass="inp-form" runat="server"></asp:TextBox>
                                </td>
                                <td>
                                    <div align="right">
                                        Work phone</div>
                                </td>
                                <td>
                                    <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender4" runat="server" FilterType="Numbers"
                                        TargetControlID="txtWorkPhone">
                                    </asp:FilteredTextBoxExtender>
                                    <asp:TextBox ID="txtWorkPhone" CssClass="inp-form" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: right">
                                    Home phone
                                </td>
                                <td>
                                    <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" FilterType="Numbers"
                                        TargetControlID="txtHomePhone">
                                    </asp:FilteredTextBoxExtender>
                                    <asp:TextBox ID="txtHomePhone" CssClass="inp-form" runat="server"></asp:TextBox>
                                </td>
                                <td>
                                    <div align="right">
                                        Fax</div>
                                </td>
                                <td>
                                    <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender5" runat="server" FilterType="Numbers"
                                        TargetControlID="txtFax">
                                    </asp:FilteredTextBoxExtender>
                                    <asp:TextBox ID="txtFax" CssClass="inp-form" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div align="right">
                                        Preferred Contact Method</div>
                                </td>
                                <td>
                                    <asp:DropDownList ID="drPreConMeth" runat="server" Width="95%" CssClass="styledselect_form_1">
                                        <asp:ListItem Value="1">Mobile</asp:ListItem>
                                        <asp:ListItem Value="2">Email</asp:ListItem>
                                        <asp:ListItem Value="3">Home</asp:ListItem>
                                        <asp:ListItem Value="4">Work</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                        </table>
                        <div class="clearContent" style="text-align: center">
                            <asp:Label ID="Label3" runat="server" Style="color: Red" />
                        </div>
                        <table id="table3" width="100%">
                            <tr>
                                <td style="text-align: center">
                                    <asp:Button ID="btNewCustomer" runat="server" Text="NEW CUSTOMER" CssClass="button_all"
                                        ValidationGroup="validSave" OnClick="btNewCustomer_Click" />
                                </td>
                                <td style="text-align: center">
                                    <asp:Button ID="btnSave" runat="server" Text="SAVE" CssClass="button_all" OnClick="btnSave_Click"
                                        ValidationGroup="validSave" />
                                    <asp:Button ID="btnsavenew" runat="server" Text="SAVE" CssClass="button_all" ValidationGroup="validSave"
                                        OnClick="btnsavenew_Click" />
                                </td>
                                <td style="text-align: right">
                                    <asp:Button ID="btnDiscard" runat="server" CssClass="button_all" Text="DISCARD" />
                                </td>
                                <td align="right" style="text-align: center">
                                    <asp:Button ID="btnNewBookIn" runat="server" CssClass="button_all" Text="NEW BOOK IN"
                                        OnClick="btnNewBookIn_Click" />
                                </td>
                                <td>
                                    <asp:Button ID="btnNewPurchase" runat="server" CssClass="button_all" Text="NEW PURCHASE" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="right_three r-align  ">
                    <!--Content-->
                    <p class="main">
                        <%--<fieldset width="900">
                    <legend><span style="color: Red; font-size: large">Job</span></legend>--%>
                        <asp:GridView ID="grdJobList" runat="server" AutoGenerateColumns="False" CssClass="grd"
                            AllowPaging="True" PageSize="6" OnRowDataBound="grdJobList_RowDataBound" OnPageIndexChanging="grdJobList_PageIndexChanging">
                            <Columns>
                                <asp:HyperLinkField DataNavigateUrlFields="JobId" DataNavigateUrlFormatString="~/Admin/Booking.aspx?id={0}"
                                    DataTextField="JobId" HeaderText="Job No" HeaderStyle-Width="60px" />
                                <asp:TemplateField HeaderText="IMEINo">
                                    <ItemTemplate>
                                        <%# Eval("IMEINo")%>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Left" Wrap="True" Font-Bold="true" Width="130px"></ItemStyle>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Description Fault">
                                    <ItemTemplate>
                                        <%# Eval("FaultDescription")%>
                                    </ItemTemplate>
                                    <ItemStyle Width="200px" VerticalAlign="Middle" HorizontalAlign="Center"></ItemStyle>
                                </asp:TemplateField>
                                <%--  <asp:TemplateField HeaderText="CustomerFullname" HeaderStyle-Width="100px">
                                    <ItemTemplate>
                                        <%# Eval("CustomerFullname")%>
                                    </ItemTemplate>
                                    <HeaderStyle Width="100px"></HeaderStyle>
                                    <ItemStyle HorizontalAlign="Center" Width="70px" />
                                </asp:TemplateField>--%>
                                <%-- <asp:TemplateField HeaderText="DateBook" HeaderStyle-Width="100px">
                            <ItemTemplate>
                                <%# (Convert.ToDateTime(Eval("DateBook")).ToString("dd/MM/yyyy"))%>
                            </ItemTemplate>
                            <HeaderStyle Width="100px"></HeaderStyle>
                            <ItemStyle Width="90px" VerticalAlign="Middle" HorizontalAlign="center" />
                        </asp:TemplateField>--%>
                                <asp:TemplateField HeaderText="Date Book" HeaderStyle-Width="130px">
                                    <ItemTemplate>
                                        <%# (Convert.ToDateTime(Eval("DateBook")).ToString("dd/MM/yyyy"))%>
                                    </ItemTemplate>
                                    <HeaderStyle Width="130px"></HeaderStyle>
                                    <ItemStyle Width="130px" VerticalAlign="Middle" HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <%-- <asp:TemplateField HeaderText="Approval Status" HeaderStyle-Width="110px">
                                    <ItemTemplate>
                                     <%# Eval("ApprovalStatus")%>
                                        <asp:Label ID="lbApprovalStatus" runat="server"></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle Width="110px"></HeaderStyle>
                                    <ItemStyle Width="110px" VerticalAlign="Middle" HorizontalAlign="Center" />
                                </asp:TemplateField>--%>
                                <asp:TemplateField HeaderText="Quotation Status" HeaderStyle-Width="130px">
                                    <ItemTemplate>
                                        <%# Eval("QuoteStatus")%>
                                        <%-- <asp:Label ID="lbQuotationStatus" runat="server"></asp:Label>--%>
                                    </ItemTemplate>
                                    <HeaderStyle Width="130px"></HeaderStyle>
                                    <ItemStyle Width="130px" VerticalAlign="Middle" HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="SalesAmount" HeaderStyle-Width="70px">
                                    <ItemTemplate>
                                        <%# Eval(" SalesAmount")%>
                                    </ItemTemplate>
                                    <HeaderStyle Width="70px"></HeaderStyle>
                                    <ItemStyle Width="90px" VerticalAlign="Middle" HorizontalAlign="Center" />
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                            <HeaderStyle CssClass="grdHeader" />
                            <EditRowStyle BackColor="#2461BF" />
                            <AlternatingRowStyle CssClass="grdAlternateRow" />
                            <PagerSettings PageButtonCount="6" />
                            <RowStyle CssClass="grdRow" />
                        </asp:GridView>
                        <%--</fieldset>--%>
                    </p>
                    <!--clear content -->
                </div>
                <div class="cleared">
                </div>
                <div class="PostFooterIcons metadata-icons">
                </div>
            </div>
            <div class="cleared">
            </div>
        </div>
    </div>
</div>
